<?php
class Mproduct extends CI_Model{

	public function __construct(){
		parent::__construct();
		$this->load->database();
	}
	public function getNums(){
		$query = $this->db->get('product');
		return $query->num_rows();
	}
	public function getAllProduct($num_record,$start){
		$this->db->limit($num_record,$start);
		$query = $this->db->get('product');
		return $query->result_array();
	}	
}